#ifndef __M_GUI_TEST_H
#define __M_GUI_TEST_H

#define BUILD_TITLE(X,Y) 											\
	{																						\
		if(!((*(X)).pszTitle))										\
		{																					\
			for(uint32_t i = 0;i < COUNTOF(X);i++)	\
			{																				\
				(X)[i].pszTitle = (tTitle)&(Y)[i];		\
			}																				\
		}																					\
	}

/*OLED 最大像素坐标*/
#define OLED_MAX_ROW_PIXL (64U)
#define OLED_MAX_COL_PIXL (256U)

//字符最小字体宽度
#define CHAR_MIN_W 	8UL

//纵坐标居中计算
#define OLED_Y_COR_CENTER(x) ((OLED_MAX_COL_PIXL - (x) * CHAR_MIN_W) >> 1U)

#endif/*__M_GUI_TEST_H*/
